//
//  SFExpandableTableViewSectionGroup.m
//  TableViewFramework
//
//  Created by 支晓辉 on 16/3/24.
//  Copyright © 2016年 wishselfly. All rights reserved.
//

#import "SFExpandableTableViewSectionGroup.h"

@implementation SFExpandableTableViewSectionGroup


#pragma mark - Getters

- (NSMutableArray *)childData {
    if (!_childData) {
        _childData = [NSMutableArray array];
    }
    return _childData;
}

#pragma mark - NSCopying

- (id)copyWithZone:(NSZone *)zone {
    SFExpandableTableViewSectionGroup *g = [[SFExpandableTableViewSectionGroup alloc] init];
    g.title                              = self.title;
    g.childData                          = _childData;
    g.expanded                           = self.expanded;
    g.selectedCount                      = self.selectedCount;
    return g;
}

@end
